﻿using ReactiveUI;

namespace WinForm.First.ReactiveUI.ViewModels
{
    public class PersonViewModel : ReactiveObject
    {
        private long _id;
        private string _name = "";
        private long _age;
        public long Id
        {
            get { return _id; }
            set { this.RaiseAndSetIfChanged(ref _id, value); }
        }
        public string Name
        {
            get { return _name; }
            set { this.RaiseAndSetIfChanged(ref _name, value); }
        }
        public long Age
        {
            get { return _age; }
            set { this.RaiseAndSetIfChanged(ref _age, value); }
        }
    }
}
